package com.lvmama.client.rhino;

import com.github.pagehelper.PageInfo;
import com.lvmama.pojo.entity.rhino.superfreetravel.PageView;
import com.lvmama.pojo.entity.rhino.superfreetravel.PageViewVo;
import com.lvmama.pojo.entity.rhino.superfreetravel.SearchListVo;
import com.lvmama.pojo.entity.rhino.superfreetravel.SuperfreeFlowstatistic;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @param
 * @Title:
 * @Author:wangpeng
 * @Description: TODO(这里用一句话描述这个方法的作用)
 * @return
 * @throws
 */
@FeignClient("rhino-web-service")
@RequestMapping("${server.servlet.context-path}")
public interface SuperfreetravelClient {

	/**
	 * 业务： 查询各元素点击量
	 * @param searchListVo
	 * @return PageInfo<SuperfreeFlowstatistic>
	 */
	@RequestMapping(method = RequestMethod.POST, value = "/superfreetravel/list", consumes = "application/json")
	PageInfo<SuperfreeFlowstatistic> clickVolume(@RequestBody SearchListVo searchListVo);

	/**
	 * 业务： 查询各页面PV UV
	 * @param pageViewVo
	 * @return PageInfo<PageView>
	 */
	@RequestMapping(method = RequestMethod.POST, value = "/superfreetravel/getPageViewList", consumes = "application/json")
	PageInfo<PageView> queryPVAndUV(@RequestBody PageViewVo pageViewVo);
}
